package com.woniuxy.sddfp.access.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yellow Doctor
 * @date 2025-06-26
 * @desc 蜗牛创想：www.woniuxy.com
 */
@RestController
public class TestPortController {

    //拿到yml port 参数
    @Value("${server.port}")
    private int port;

    @GetMapping("/test/port")
    public String testPort(){
        System.out.println("当前的服务端口是 port = " + port);
        return "当前的服务端口是:" + port;
    }

}
